<div class="m-page-title m-page-title-b1">
	<h2 class="u-tt">缓存管理</h2>
</div>
<div class="m-form">
	<fieldset>
    	<!--{loop="$cacheList $key $vo"}-->
		<div class="formitm">
			<label class="lab" >{$vo.name}：</label>
			<div class="ipt">
				<button class="u-btn clear" data="{$key}" type="button">清空缓存</button>
				<button class="u-btn size" data="{$key}" type="button">缓存信息</button>
				<span class="suffix"></span>
				<p>{$vo.dir}</p>
			</div>
		</div>
        <!--{/loop}-->
	</fieldset>
</div>
<script>
Do.ready(function() {
	$('.size').click(function() {
		obj=this;
		$.post('{$url|"Manage/getCacheInfo"}',{type:$(this).attr('data')},function(json){
			$(obj).next('span').html(json.info);
		},'json');
		return false;
	});
	$('.clear').click(function() {
		obj=this;
		$.post('{$url|"Manage/clearCache"}',{type:$(this).attr('data')},function(json){
			$(obj).parent().find('.suffix').html(json.info);
		},'json');
		return false;
	});
});
</script>